import { IsOptional, IsString } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';

export class GetFileFilterDto {
  // 可选的
  @ApiProperty({
    description: '搜索',
    required: false,
  })
  @IsOptional()
  @IsString()
  search?: string;
  @ApiProperty({
    description: '文件大小',
    required: false,
  })
  @IsOptional()
  @IsString()
  size: string;
  @ApiProperty({
    type: Number,
    description: '删除标记 0-未删除 1-删除',
    default: 0,
    required: false,
  })
  isDelete: number;
}
